home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Source Code
/
Pascal
/
Snippets
/
PNL Libraries
/
Libraries
/
StubCDEF
/
StubCDEF.p
< prev
next >
Wrap
Text File
|
1994-04-12
|
580b
|
23 lines
unit StubCDEF;
interface
function Main (variation: integer; theControl: ControlHandle; msg: integer; param: longInt): longInt;
implementation
function CallProc (variation: integer; theControl: ControlHandle; msg: integer; param: longInt; proc: procPtr): longInt;
inline
$205F, $4E90;
function Main (variation: integer; theControl: ControlHandle; msg: integer; param: longInt): longInt;
var
rc: longInt;
begin
Main := 0;
rc := GetCRefCon(theControl);
if procPtr(rc) <> nil then
Main := CallProc(variation, theControl, msg, param, procPtr(rc));
end;
end.